from rest_framework import serializers



"""
序化器的4个步骤：
    字段声明
    模型序化器字段
    验证器
    存储数据方法
    
"""


class BannerAPIViewSerializers(serializers.Serializer):


    title = serializers.CharField(max_length=500)  # 标题
    img_path = serializers.ImageField()
    img_link = serializers.CharField()
   # remark = serializers.TextField(verbose_name="备注信息")



